package com.esiran.payadmin.shiro.token;

import org.apache.shiro.authc.UsernamePasswordToken;

public class MultipleRealmToken extends UsernamePasswordToken {
    private String realmName;
    public MultipleRealmToken(String username, char[] password, String realmName) {
        super(username, password);
        this.realmName = realmName;
    }

    public MultipleRealmToken(String username, String password, String realmName) {
        super(username, password);
        this.realmName = realmName;
    }

    public String getRealmName() {
        return realmName;
    }

    public void setRealmName(String realmName) {
        this.realmName = realmName;
    }

    public String passwordString(){
        return String.valueOf(getPassword());
    }
}
